@layout("/common/_form.html",{js:["/assets/stock/stock_edit.js"]}){

<form class="layui-form" id="stockForm" lay-filter="stockForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">商品<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="hidden" id="productName" name="productName"  class="layui-input">
                            <input type="hidden" id="productId" name="warehouseId"  class="layui-input">
                            <select id="productIdSelect" name="productIdSelect"  lay-verify="required" lay-search>
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">供应商<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="hidden" id="supplierName" name="supplierName"  class="layui-input">
                            <input type="hidden" id="supplierId" name="supplierId"  class="layui-input">
                            <select id="supplierIdSelect" name="supplierIdSelect"  lay-verify="required" lay-search>
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">分店<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="hidden" id="shopName" name="shopName"  class="layui-input">
                            <input type="hidden" id="shopId" name="shopId"  class="layui-input">
                            <select id="shopIdSelect" name="shopIdSelect"  lay-verify="required" lay-search>
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">仓库<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="hidden" id="warehouseName" name="warehouseName"  class="layui-input">
                            <input type="hidden" id="warehouseId" name="warehouseId"  class="layui-input">
                            <select id="warehouseIdSelect" name="warehouseIdSelect" lay-filter="warehouseIdSelect" lay-verify="required" lay-search>
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">货架<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input type="hidden" id="shelfName" name="shelfName"  class="layui-input">
                            <input type="hidden" id="shelfId" name="shelfId"  class="layui-input">
                            <select id="shelfIdSelect" name="shelfIdSelect" lay-filter="shelfIdSelect" lay-verify="required" lay-search>
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">销售可用库存<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="saleUsableCount" name="saleUsableCount" placeholder="请输入销售可用库存" type="number" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">销售冻结库存<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="saleFreezeCount" name="saleFreezeCount" placeholder="请输入销售冻结库存" type="number" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">销售已用库存<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="saleUsedCount" name="saleUsedCount" placeholder="请输入销售已用库存" type="number" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">仓库可用库存<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="warehouseUsableCount" name="warehouseUsableCount" placeholder="请输入仓库可用库存" type="number" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">仓库冻结库存<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="warehouseFreezeCount" name="warehouseFreezeCount" placeholder="请输入仓库冻结库存" type="number" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">仓库已用库存<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="warehouseUsedCount" name="warehouseUsedCount" placeholder="请输入仓库已用库存" type="number" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">乐观锁<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="version" name="version" placeholder="请输入乐观锁" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}